﻿@using Knc.Core.ViewModel
@model CateVModel
@{
    Layout = "~/Areas/FRONT/Views/Shared/_Layout.cshtml";
}
<div style="width: 1000px; margin: 0 auto; margin-top: 10px;">
    <div class="linktree">
        <a href="/">Home</a>
        &raquo; <a href=/Front/Category/Index?CateId =@Model.CateId">@Model.CateName</a>
    </div>
    <br />
    <h1 style="margin-top: -10px;">@Model.CateName</h1>
    <br />
    <div id="notification"></div>
    <div id="column-left">
        @{
            Html.RenderAction("VerticalCategoryList", "PartialView", new { area = "front" });
        }
    </div>

    <div id="content">
        <div class="category-info">
            <div class="image">
                <img src="@Model.ImgUrl" alt="@Model.CateName" />
            </div>
            <p>
                @Model.CateDesc
            </p>
        </div>

        <div class="column">
            <div class="category-list block">
                @if (Model.CateChild.Count > 0)
                {
                    <h2>Fast Label</h2>
                }
                @for (int i = 0; i < Model.CateChild.Count; i++)
                {
                    int j = 0;//循环计量
                    <div class="column20p">
                        <ul>
                            @while (j < 2 && i < Model.CateChild.Count)
                            {
                                <li><a href="/Front/Category/Index?CateId=@Model.CateChild[i].CateId">@Model.CateChild[i].CateName</a></li>
                                j += 1;
                                i += 1;
                            }
                        </ul>
                    </div>
                }
            </div>
        </div>

        @{
            Html.RenderAction("ProductList", "PartialView", new { area = "front" });
        }

    </div>

</div>
